package com.engine4cloud.tdf.supervision.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import java.io.Serializable;

/**
 * 社区矫正人员编码生成对象-请求对象
 *
 * @author wenjie
 * @date 2024-03-18 11:20:26
 */
@Data
@Schema(description = "社区矫正人员编码生成对象-请求对象")
public class JzdxCodeGenDTO implements Serializable {

    /**
     * 行政编码
     */
    @Schema(description = "位行政编码", example = "610410")
    @NotBlank(message = "6位行政编码不能为空")
    @Length(min = 6, max = 6, message = "位行政编码必须为6位")
    private String areaCode;


    @Schema(description = "目前部门下最大的矫正编号", example = "6104102024030009")
    @NotBlank(message = "部门下最大矫正编号不能为空")
    @Length(min = 16, max = 16, message = "矫正编号必须为16为")
    private String departMaxCode;

}